option( BUILD_LUT2LUT OFF)
if(BUILD_LUT2LUT)


# Find BOOST
set(Boost_ADDITIONAL_VERSIONS
                              "1.44" "1.44.0"
                              "1.45" "1.45.0"
                              "1.46" "1.46.0")
find_package( Boost 1.42 COMPONENTS program_options filesystem REQUIRED )
if( Boost_FOUND )
    include_directories( ${Boost_INCLUDE_DIR} )
else()
    message( FATAL_ERROR "Boost not found ! Please set Boost path ..." )
endif()
#----------------------------------------------------------
# add executbale
#----------------------------------------------------------
set(lut2lut_DIR ${CMAKE_CURRENT_SOURCE_DIR})
add_executable (lut2lut ${lut2lut_DIR}/lut2lut.cpp)
target_link_libraries(lut2lut luttinyxml liblutcore ${Boost_LIBRARIES})
set_target_properties(lut2lut PROPERTIES
 RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
endif(BUILD_LUT2LUT)
